<!--
/**************************************************
* @ orderapplytake.jsp
*
* Copyright   2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2009/03/26, peng.ning
*   
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>
<%@page import="system.LoginContext"%>
<%@page import="framework.core.SrvContext"%>
<html>
<head>
<title>补货申请管理</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
<%  
   ArrayList tManuf1 = (ArrayList)request.getAttribute("manufacture1");
   HashMap tMap1 = (HashMap)request.getAttribute("manufacturetyp2");
   HashMap tMap2 = (HashMap)request.getAttribute("manufacturetyp3");
   ArrayList wareList = (ArrayList)request.getAttribute("orderdept");
	
	ResultProcess tOrder = (ResultProcess)request.getAttribute("order");
	String isRequery = (String)request.getAttribute("requery");
	ArrayList tList1 = new ArrayList();
	String [] tStr = null;
	int size=0;
%>
<script>

	var counter;
	function process(val){
		if(val == 'Q'){
			var tStr = "";		
			var tEnd = "";				
			if(!isEmpty(ordercancelform.orderCreateDateStr.value)){
				tStr = ordercancelform.orderCreateDateStr.value.substr(0,4) + ordercancelform.orderCreateDateStr.value.substr(5,2) + ordercancelform.orderCreateDateStr.value.substr(8,2);
			}
			if(!isEmpty(ordercancelform.orderCreateDateEnd.value)){
				tEnd = ordercancelform.orderCreateDateEnd.value.substr(0,4) + ordercancelform.orderCreateDateEnd.value.substr(5,2) + ordercancelform.orderCreateDateEnd.value.substr(8,2);						
			}
			if(parseInt(tStr) > parseInt(tEnd)){
					alert("订单创建周期的开始日期不能大于截止日期！");
					return false;
			}		
			ordercancelform.action = "<%= response.encodeURL(request.getContextPath() + "/A151102.do") %>";
    		ordercancelform.submit();			
		}else if(val == 'C'){
			ordercancelform.orderdetailId.value ="";
			ordercancelform.orderStatus.value="00";			
			ordercancelform.orderDeptId.selectedIndex=0;
			
			
			ordercancelform.manuftype1.value="0";
			var listbox2 = document.getElementById("manuftype2Id");
			listbox2.length = 0;
			var option2 = new Option();
			option2.text = "---二级---";
			option2.value = "0";			
			listbox2.options[listbox2.length] = option2;
			
			var listbox3 = document.getElementById("manuftype3Id");
			listbox3.length = 0;
			var option3 = new Option();
			option3.text = "---三级---";
			option3.value = "0";			
			listbox3.options[listbox3.length] = option3;
			
			ordercancelform.concentricityId.value = "";
			ordercancelform.providerId.value = "";
			ordercancelform.manufInfo.value = "";
			ordercancelform.orderCreateDateStr.value = "";						
			ordercancelform.orderCreateDateEnd.value = "";									
			return;
		}else if(val == 'T'){
		   var chks=document.getElementsByName("applyids");
            var count=0;
            for(var a=0;a<chks.length;a++){
                if(chks[a].checked){
                    var val=chks[a].value;
                    var vals=val.split('@');
                    if(vals[1]!='<%=GSBaseConstants.ORDER_SUPPLY_APPLY%>'){
                        alert("只能选择状态为'申请'的记录!");
                        return false;
                    }
                    count++;
                }
            }
            if(count==0){
                alert("请选择同意配送的申请记录！");
                return false;
            }
            document.pager.action="<%= response.encodeURL(request.getContextPath() + "/A151104.do") %>";
            document.pager.submit();
		}else if(val == 'A'){
            var chks=document.getElementsByName("applyids");
            var count=0;
            for(var a=0;a<chks.length;a++){
                if(chks[a].checked){
                    var val=chks[a].value;
                    var vals=val.split('@');
                    if(vals[1]!='<%=GSBaseConstants.ORDER_SUPPLY_APPLY%>'){
                        alert("只能选择状态为'申请'的记录!");
                        return false;
                    }
                    count++;
                }
            }
            if(count==0){
                alert("请选择拒绝的申请记录！");
                return false;
            }
            document.pager.action="<%= response.encodeURL(request.getContextPath() + "/A151102.do") %>";
            document.pager.submit();
        }
	}		
function change1(optval){
  var val = optval;
  if(val=='0'){
    var listbox = document.getElementById("manuftype2Id");
    listbox.length = 0;
    var option = new Option();
    option.text = "---二级---";
    option.value = "0";
    listbox.options[listbox.length] = option;
    change2(optval);
  }else{
      var counter="0";
    <%if(tMap1 !=null){
      Collection tCollection = tMap1.keySet();
      Iterator tIterator = tCollection.iterator();
      while(tIterator.hasNext()){
        String tKey = (String)tIterator.next();
        tList1 = (ArrayList)tMap1.get(tKey);%>
        if(val == '<%=tKey%>'){
		  counter = "1";
          var listbox = document.getElementById("manuftype2Id");
          listbox.length = 0;
          var option = new Option();
          option.value = "0";
          option.text = "---二级---";
          listbox.options[listbox.length] = option;
          <%
	          	for(int n=0;n<tList1.size();n++){
		            GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList1.get(n);
		            String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
		            String categoryName = tGSManufactureBean.getGs_manufacture_category_name();%>
		            var temp1 = '<%=categoryId%>';
		            var temp2 = '<%=categoryName%>';
		            var option = new Option();
		            option.value = temp1;
		            option.text = temp2;
		            listbox.options[listbox.length] = option;
           <%
	       		}
           %>
			change2('0');           
         }
         
    <%
    	}
    %>
    	if(counter == '0'){
          var listbox = document.getElementById("manuftype2Id");
          listbox.length = 0;
          var option = new Option();
          option.value = "0";
          option.text = "---二级---";
          listbox.options[listbox.length] = option;  
          change2('0');    	
    	}
    <%  
    }
    %>
   }
}
    function change2(optval){
      var val = optval;
      if(val=='0'){
        var listbox = document.getElementById("manuftype3Id");
        listbox.length = 0;
        var option = new Option();
        option.text = "---三级---";
        option.value = "0";
        listbox.options[listbox.length] = option;

      }else{
      	var counter = "0";
        <%if(tMap2 !=null){
          Collection tCollection = tMap2.keySet();
          Iterator tIterator = tCollection.iterator();
          while(tIterator.hasNext()){
            String tKey = (String)tIterator.next();
            tList1 = (ArrayList)tMap2.get(tKey);%>
            if(val == '<%=tKey%>'){
              counter = "1";
              var listbox = document.getElementById("manuftype3Id");
              listbox.length = 0;
              var option = new Option();
              option.text = "---三级---";
              option.value = "0";
              listbox.options[listbox.length] = option;
              <%for(int n=0;n<tList1.size();n++){
                GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList1.get(n);
                String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
                String categoryName = tGSManufactureBean.getGs_manufacture_category_name();%>
                var temp1 = '<%=categoryId%>';
                var temp2 = '<%=categoryName%>';
                var option = new Option();
                option.value = temp1;
                option.text = temp2;
                listbox.options[listbox.length] = option;
                <%}%>
              }
          <%
          }
          %>
          if(counter == '0'){
		        var listbox = document.getElementById("manuftype3Id");
		        listbox.length = 0;
		        var option = new Option();
		        option.text = "---三级---";
		        option.value = "0";
		        listbox.options[listbox.length] = option;          
          }
          <%
            }%>
          }
        }	
		function control(){
			<%
				if(isRequery != null && isRequery.equals("true")){
			%>
			ordercancelform.action = "<%=response.encodeURL(root + "/A150702.do")%>";
    		ordercancelform.submit();		
			<%		
				}
			%>
		}        
</script>

</head>

<body BGCOLOR="#f2f2f2"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="control()">
<form name="ordercancelresultform" method="post">
	<input type="hidden" name="contents" >	
	<input type="hidden" name="orderid" >	
	<input type="hidden" name="status" >	
	<input type="hidden" name="isTradeFlatManuf" >	
	<input type="hidden" name="isTradeFlatProvider" >	
	<input type="hidden" name="orderdetailId" >	
	<input type="hidden" name="orderStatus" >	
	<input type="hidden" name="orderDeptId" >	
	<input type="hidden" name="concentricityId" >	
	<input type="hidden" name="manufInfo" >	
	<input type="hidden" name="providerId" >								
	<input type="hidden" name="manuftype3" >								
	<input type="hidden" name="manuftype2" >								
	<input type="hidden" name="manuftype1" >											
	<input type="hidden" name="orderCreateDateEnd" >											
	<input type="hidden" name="orderCreateDateStr" >													
	<input type="hidden" name="sign" >
</form>
<form name=ordercancelform method="get" >
<p><br></p>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td height="20">
			<table width="100%" border="0" cellspacing="0" cellpadding="1">
				<tr height="20">
					<td height="30" width="758" class="mtxt_black">补货申请处理
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="bg_line" height="2"></td>
	</tr>
</table>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr> 
		<td> 
			<table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
				<TR height=20>
					<TD class="bg_column" align=center width="15%">申请单编号</TD>
					<TD align=left class="bg_row_odd" width="35%">
					<input type="text" name="orderdetailId" value="<%=request.getParameter("orderdetailId")==null? "":request.getParameter("orderdetailId") %>" maxlength="20"></TD>					
					<TD class="bg_column" align=center width="15%">申请单状态</TD>
					<TD align=left class="bg_row_odd" width="35%">
						<select name="orderStatus">					
						<option value="00">---全部---</option>
						<%
							String tOrderDetailStatus = (String)request.getParameter("orderStatus");
							String[][] tDetailStatus = GSBaseManager.getApplyStatus();
							if(tDetailStatus != null && tDetailStatus.length > 0 ){
								for(int i=0; i<tDetailStatus.length; i++){
									String[] temp = tDetailStatus[i];
									if(tOrderDetailStatus != null && tOrderDetailStatus.equals(temp[0])){
						%>
										<option value="<%=temp[0]%>" selected>
										<%=temp[1]%></option>
						<%				    
									}else{
						%>
										<option value="<%=temp[0]%>" >
										<%=temp[1]%></option>
						<%			
									}
								}
							}
						%>
						</select>
					</TD>	
				</TR>
				<TR height=20>							
					<TD class="bg_column" align=center>补货单位</TD>
					<TD left=right class="bg_row_odd" colspan="3">
						<select name="orderDeptId">					
						<option value="<%=LoginContext.get(new SrvContext(request,response)).getLoginWarehouseCode() %>">---全部---</option>
              <%
                            String tOrderDept = request.getParameter("orderDeptId")==null?"":request.getParameter("orderDeptId");
                            if(wareList != null && wareList.size() > 0 ){
                                    for(int i=0; i<wareList.size(); i++){
                                        GSWareHouseBean tmp=(GSWareHouseBean)wareList.get(i);
                                        if(tmp != null && tOrderDept.equals(tmp.getCode())){
                            %>
                                            <option value="<%=tmp.getCode()%>" selected>
                                            <%=tmp.getName()%></option>
                            <%                  
                                        }else{
                            %>
                                            <option value="<%=tmp.getCode()%>"><%=tmp.getName()%></option>
                            <%          
                                        }
                                    }
                                }
                        %>
						</select>
					</TD>				
				</TR>				
				<TR height=20>
					<TD class="bg_column" align=center>集中编码</TD>
					<TD align=left class="bg_row_odd">
					<input type="text" name="concentricityId" maxlength="20" value="<%=request.getParameter("concentricityId")==null?"":request.getParameter("concentricityId")%>">
					</TD>
					<TD class="bg_column" align=center>供应商</TD>
					<TD align=left class="bg_row_odd">
					<input type="text" name="providerId" maxlength="20" value="<%=request.getParameter("providerId")==null?"":request.getParameter("providerId")%>">
					</TD>
				</TR>									
				<TR height=20>
					<TD class="bg_column" align=center>产品信息</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<input type="text" name="manufInfo" maxlength="200" value="<%=request.getParameter("manufInfo")==null?"":request.getParameter("manufInfo")%>">（<FONT color="#ff0033">对产品名称、型号、规格、品牌、生产厂商、附加属性等关键字的模糊查询</FONT>）&nbsp;
					</TD>
				</TR>	
				<TR height=20>	
					<TD class="bg_column" align=center>产品分类</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<select name="manuftype1" onChange="change1(this.value)">	
						<option value="0">---一级---</option>				
						<%
							String tManufType1 = request.getParameter("manuftype1");
							//int iManuType1 = 0;
							if(tManuf1 != null && tManuf1.size() > 0 ){
							    if(tManufType1 != null){
							        //iManuType1 = Integer.parseInt(tManufType1);
							    }
								for(int i=0; i<tManuf1.size(); i++){
								    GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tManuf1.get(i);
								    if(tManufType1 != null && tManufType1.equals(tGSManufactureBean.getGs_manufacture_category_id())){
								        
						%>
								<option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>" selected>
								<%=tGSManufactureBean.getGs_manufacture_category_name()%></option>
						<%			        
								    }else{
						%>
								<option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>">
								<%=tGSManufactureBean.getGs_manufacture_category_name()%></option>
								
						<%			}	
								}
							}
						%>

						</select>
						<select id="manuftype2Id" name="manuftype2" onChange="change2(this.value)">	
						<option value="0">---二级---</option>				
						<%
							String tManufType2 = request.getParameter("manuftype2");
							if(tManufType1 != null && !tManufType1.equals("0")){
							    //int tIntManuType2 = Integer.parseInt(tManufType2);
							    ArrayList temp = (ArrayList)tMap1.get(tManufType1);
							    if(temp!= null && temp.size() > 0){
									for(int i=0; i<temp.size(); i++){
									    GSManufactureCategoryBean tGSManuf2 = (GSManufactureCategoryBean)temp.get(i);
									    if(tManufType2 != null && tManufType2.equals(tGSManuf2.getGs_manufacture_category_id())){
							%>
									<option value="<%=tManufType2%>" selected><%=tGSManuf2.getGs_manufacture_category_name()%></option>
							<%			        
									    }else{
							%>
									<option value="<%=tGSManuf2.getGs_manufacture_category_id()%>"><%=tGSManuf2.getGs_manufacture_category_name()%></option>
									
							<%			}	
									}
							    }
							}
						%>

						</select>
						<select name="manuftype3" id="manuftype3Id">	
						<option value="0">---三级---</option>				
						<%
							String tManufType3 = request.getParameter("manuftype3");
							if(tManufType2 != null && !tManufType2.equals("0") ){
							    //int tIntManufType3 = Integer.parseInt(tManufType3);
							    ArrayList temp = (ArrayList)tMap2.get(tManufType2);
							    if(temp != null && temp.size() > 0){
									for(int i=0; i<temp.size(); i++){
									    GSManufactureCategoryBean tGSManuf3 = (GSManufactureCategoryBean)temp.get(i);
									    if(tManufType3 != null && tManufType3.equals(tGSManuf3.getGs_manufacture_category_id())){
							%>
									<option value="<%=tGSManuf3.getGs_manufacture_category_id()%>" selected><%=tGSManuf3.getGs_manufacture_category_name()%></option>
							<%			        
									    }else{
							%>
									<option value="<%=tGSManuf3.getGs_manufacture_category_id()%>"><%=tGSManuf3.getGs_manufacture_category_name()%></option>
									
							<%			}	
									}
							    }
							}
						%>

						</select></TD>
				</TR>
                <%
                SimpleDateFormat bartDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                Date d = new Date();
                String strNow = String.valueOf(bartDateFormat.format(d));
                long l=(long)259200*(long)10000;
                Date d2 = new Date(System.currentTimeMillis()-l);
                String strMothAgo = String.valueOf(bartDateFormat.format(d2));
                %>  
				<TR height=20>	
					<TD class="bg_column" align=center>创建时间</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<input type="text"	name="orderCreateDateStr" value="<%=request.getParameter("orderCreateDateStr")==null?strMothAgo:request.getParameter("orderCreateDateStr")%>" length="20" onfocus="setday(this)" readonly> 
					～<input type="text"	name="orderCreateDateEnd" length="20" value="<%=request.getParameter("orderCreateDateEnd")==null?strNow:request.getParameter("orderCreateDateEnd")%>" onfocus="setday(this)" readonly>
					</TD>
				</TR>
                <%
                ArrayList tList =new ArrayList();
                if(tOrder != null) {
                    int totalRecords = 0;
                    if(request.getAttribute("totalRecords")!=null){
                        totalRecords=Integer.parseInt((String)request.getAttribute("totalRecords"));
                    }
                    int defaultPageSize =10;
                    if(request.getAttribute("pageSize")!=null){
                        defaultPageSize=Integer.parseInt((String)request.getAttribute("pageSize"));
                    }
                %>          
                <page:pager total='<%=totalRecords%>' defaultPageSize='<%=defaultPageSize%>'>
                </page:pager>
                <%} %>
			</table>
		</td>
	</tr>
</table>
</form>
    <p align="center">  
		<input type="button" class="kuang" value="查询" onclick="process('Q')"/>&nbsp;
		<input type="button" class="kuang" value="清空" onclick="process('C')"/>&nbsp;		
    </p>
<%
	
	if(tOrder != null){
%>
	<center>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
            <form name='pager' method="post">
            <input type="hidden" name="orderId" >
            <input type="hidden" name="orderCategory">            
            <input type="hidden" name="orderDept" >  
            <input type=hidden name=orderId>          
            	<table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 

                    <tr class="bg_column" height=20> 
                    	<td></td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">申请单编号</div>
						</td>                    
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">申请单状态</div>
						</td>                    			
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">集中编码</div>
						</td>												
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">产品名称</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">申请日期</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">规格</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">型号</div>
						</td>																																				
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">品牌</div>
						</td>											
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">供应商</div>
						</td>																									
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">配送数量</div>
						</td>										
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">单价</div>
						</td>																																				
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">总价</div>
						</td>			
						 <td class=top align=middle> 
                        <div align="center" class="txt_content">送货日期</div>
						</td>																																					
						 <td class=top align=middle> 
                        <div align="center" class="txt_content">送货时间</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">结算模式</div>
                        </td>																																																																										
					</tr>
					<%
					   tList=tOrder.getAllRecoreds();
						if(tList != null && tList.size() > 0){
						 size=tList.size();
							
						for(int i=0; i<tList.size(); i++){
							GSOrderApplyBean bean=(GSOrderApplyBean)tList.get(i);
							String tTempStr="";
							if(i%2==0){
								tTempStr="class=\"bg_row_odd\"";
							}else {
								tTempStr="class=\"bg_row_even\"";
							}
					%>
							<tr <%=tTempStr%> height=20>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									 <input type="checkbox" name="applyids" value="<%=bean.getId()+"@"+bean.getApply_status()+"@"+bean.getWarehouse_code()+"@"+bean.getApply_code()%>">	    
									 </div>
								</td>							
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=bean.getApply_code()%>
									</div>
								</td>	
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=DefineDic.getApplyStatus(bean.getApply_status())%>
									</div>
								</td>									
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=bean.getConcentricity_code()%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<a href="<%=response.encodeURL(root+"/A150103.do")%>?concentricityId=<%=bean.getConcentricity_code()%>" target="_blank"><%=bean.getName_product()%></a>
									</div>
								</td>														
								<td class=top align=middle > 								
									<div align="center" class="txt_content">
									<%=bean.getApply_date()%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=bean.getSpec()%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=bean.getModel()%>
									</div>
								</td>													
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=bean.getProduct_brand()%>
									</div>
								</td>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<a href="<%=response.encodeURL(root+"/A400108.do")%>?providerId=<%=bean.getProvider_code()%>" target=_blank>
									<%=bean.getName_provider()%>
									</a>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
                                    <input type="hidden" name="sendcount" value="<%=StringUtils.formatEDouble(bean.getSend_count(),2)%>"><%=bean.getProduct_unit()%>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=StringUtils.formatEDouble(bean.getUnit_price(),4)%>元
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=StringUtils.formatEDouble(bean.getUnit_price()*bean.getSend_count(),4)%>元
									</div>
								</td>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
                                    <input type="text" name="senddate" value="<%=bean.getSend_date()%>" readonly onfocus='setday(this,document.getElementById("delivertime<%=i+1 %>"))'>
									<%=bean.getSend_date()%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
                                    <select name='sendtime'>
                                    <option value='1' <%="8:00-12:00".equalsIgnoreCase(bean.getSend_time()) ? "selected" : ""%>>8:00-12:00</option>
                                    <option value='2' <%="13:00-18:00".equalsIgnoreCase(bean.getSend_time()) ? "selected" : ""%>>13:00-18:00</option>
                                    <option value='3' <%="全天".equalsIgnoreCase(bean.getSend_time()) ? "selected" : ""%>>全天</option>
                                </select>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=DefineDic.getBalanceMode(GSBaseConstants.BALANCE_MODE1)%>
									</div>
								</td>																																							
							</tr> 
					<%
						}
					%>
						  <tr class="bg_column" height=20>
						    <td width="960" height="16" colspan="18" align="right">
									<!--导航条-->
						    		<page:navigator type='text' queryForm='ordercancelform'/>
						    </td>
						  </tr>					
				    <%
						}else{
					%>
							<font color="red">没有符合条件的申请单信息</font>
					<%
						}
					%>
					</tbody>
				</table>
				</form>					  
			</td>
		</tr>
	</table>
		<p align="center">
	<%
		if(size > 0){
	%>
    <input type="button" class="kuang" value="同意配送" onclick="process('T')">&nbsp;
	<input type="button" class="kuang" value="拒绝配送" onclick="process('A')">&nbsp;
	<%
		}
	%>
       </p>
	</center>
	
	  
		
<%		
	}
	if(tOrder == null && isRequery != null && isRequery.equals("true")){
%>
	<font size="2">数据查询中......</font>
<%	    
	}
%>
</html>